package com.atguigu.yygh.client;

import com.atguigu.yygh.common.result.Result;
import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import com.atguigu.yygh.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ybl
 * @version 1.9
 * @date 2021/5/24 8:59
 */
@Repository
@FeignClient(value = "service-hosp")
@RequestMapping("/api/hosp/hospital")
public interface ServiceHospClient {

  /**
   * 根据scheduleId获取订单基本信息
   */
  @GetMapping("inner/getScheduleOrderVo/{scheduleId}")
  ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

  @GetMapping("inner/getSignInfoVo/{hoscode}")
  SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);

  @GetMapping("getSchedule/{scheduleId}")
  Result getSchedule(@PathVariable String scheduleId);
}
